* March 16, 2025

set matsize 150 
set more off

use "D:\10022024\research, journal papers\suicide terrorism and hard targets\replication materials\data\Tables 1 to 3, Figure 2, Appendixes 1 to 5, and Appendix Figure 1\SAND.dta", clear
	 

	 
	 
***** Table 1 *****

sum hardtarget female religious_conflict Muslim_organization foreign_organization f_occupation iraqsyria 




sort year
tab year, gen (yr)
* some year dummies omitted due to collinearity




***** Table 2 *****

logit hardtarget       female /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget       female religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget       female religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust

logit hardtarget       female /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ /// 
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget       female religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget       female religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)




***** Figure 2, based on Model 8, Table 2 *****

logit hardtarget       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
margins, dydx(*) post
estimates store M8
coefplot /*(M1, label(Model 1) pstyle(p3) msymbol(O))*/ (M8, label(Model 8) pstyle(p3) msymbol(O)), drop(_cons yr*) xline(0) xtitle(Average Marginal Effects) ///
         order(female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria) ///
         coeflabel(female = "Female Suicide Bomber" religious_conflict = "Religious Conflict" Muslim_organization = "Islamist Terrorist Organization" foreign_organization = "Transnational Terrorist Organization" ///
		           /*log_milex = "Military Expenditure" log_gdppc_2010 = "GDP Per Capita"*/ f_occupation = "Foreign Occupation" iraqsyria = "Dummy for Iraq and Syria") ///
         ciopts(recast(rcap))



		 
***** Appendix 6 *****

replace size = 1 if size == .
gen size_log = ln(size)
replace duration = 0 if duration == .
replace polity2 = -11 if polity2 == .
gen polity2_11 = polity2 + 11

* Model 1
*leftist omitted because of collinearity
logit hardtarget       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria forced /*leftist*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust

* Model 2
logit hardtarget       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria size_log duration polity2_11 ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust




***** Table 3 *****

logit hardtarget_military female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3*/ yr4 yr5 yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11*/ yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit target_combatant female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit target_foreign   female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 /*yr8 yr9 yr10*/ ///
					   /*yr11 yr12 yr13 yr14*/ yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit shia_civilian female_sunni religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5 yr6 yr7 yr8 yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 /*yr20*/ ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)

* Instrumental Variables Probit Model
ivprobit hardtarget religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
				      (female = /*fertility449*/ number_terror_group), vce(cluster ccode) first 




***** Appendix 1 *****

logit target_combatantwithmixed       female /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3*/ yr4 yr5 yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11*/ yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit target_combatantwithmixed       female religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3*/ yr4 yr5 yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11*/ yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit target_combatantwithmixed       female religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3*/ yr4 yr5 yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11*/ yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit target_combatantwithmixed       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3*/ yr4 yr5 yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11*/ yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit target_combatantwithmixed       female /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3*/ yr4 yr5 yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11*/ yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit target_combatantwithmixed       female religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3*/ yr4 yr5 yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11*/ yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit target_combatantwithmixed       female religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3*/ yr4 yr5 yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11*/ yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit target_combatantwithmixed       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3*/ yr4 yr5 yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11*/ yr12 yr13 yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)




***** Appendix 2 *****

logit hardtarget_rebel_included       female /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget_rebel_included       female religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget_rebel_included       female religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget_rebel_included       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget_rebel_included       female /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget_rebel_included       female religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget_rebel_included       female religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget_rebel_included       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)




***** Appendix 3 *****

logit hardtarget_rebel_without       female /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget_rebel_without       female religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget_rebel_without       female religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget_rebel_without       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget_rebel_without       female /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget_rebel_without       female religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget_rebel_without       female religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget_rebel_without       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)




***** Appendix 5 *****
* Print/broadcast media perspectives, v2merange 
gen Female_Bomber_Media_Attention = female * v2merange
gen Hard_Target = hardtarget
gen Female_Bomber = female
gen Media_Attention = v2merange

logit Hard_Target       i.Female_Bomber ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit Hard_Target       Media_Attention ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit Hard_Target       i.Female_Bomber Media_Attention ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit Hard_Target       i.Female_Bomber Media_Attention Female_Bomber_Media_Attention ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit Hard_Target       i.Female_Bomber ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit Hard_Target       Media_Attention ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit Hard_Target       i.Female_Bomber Media_Attention ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit Hard_Target       i.Female_Bomber Media_Attention Female_Bomber_Media_Attention ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)




***** Appendix Figure 1 *****

logit Hard_Target       i.Female_Bomber Media_Attention Female_Bomber_Media_Attention ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 yr7 yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
margins, dydx(Female_Bomber) at(Media_Attention = (-2.531 (1.0) 2.539))
marginsplot, yline(0)




***** Appendix 4 *****
drop if female_missing_dropped == 1

logit hardtarget       female /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget       female religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget       female religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, robust
logit hardtarget       female /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget       female religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget       female religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit hardtarget       female religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13*/ yr14 yr15 yr16 yr17 yr18 yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)

					   
					   
					   
					   
					   






